File: access 您所在的位置:网站首页 gitlab4j access token File: access

File: access

#File: access| 来源: 网络整理| 查看: 265

DEBSOURCES

File: access_token_fetcher.h package info (click to toggle) chromium 111.0.5563.64-1 links: PTS, VCS area: main in suites: bookworm, sid size: 5,251,168 kB sloc: cpp: 27,650,285; ansic: 6,896,119; javascript: 3,556,702; python: 1,884,814; asm: 1,010,098; java: 723,063; xml: 558,834; sh: 97,509; objc: 97,373; perl: 87,894; cs: 41,551; makefile: 26,107; fortran: 24,137; php: 20,536; tcl: 18,931; ruby: 17,722; sql: 15,689; pascal: 14,741; yacc: 7,984; lisp: 2,674; lex: 1,324; ada: 727; awk: 329; jsp: 267; exp: 43; sed: 37 file content (69 lines) | stat: -rw-r--r-- 2,843 bytes parent folder | download | duplicates (3) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 // Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_ACCOUNT_MANAGER_CORE_CHROMEOS_ACCESS_TOKEN_FETCHER_H_ #define COMPONENTS_ACCOUNT_MANAGER_CORE_CHROMEOS_ACCESS_TOKEN_FETCHER_H_ #include #include #include #include "base/functional/callback_forward.h" #include "chromeos/crosapi/mojom/account_manager.mojom.h" #include "components/account_manager_core/chromeos/account_manager.h" #include "google_apis/gaia/oauth2_access_token_consumer.h" #include "google_apis/gaia/oauth2_access_token_fetcher.h" #include "mojo/public/cpp/bindings/pending_receiver.h" #include "mojo/public/cpp/bindings/receiver.h" namespace crosapi { // Mojo interface implementation to fetch access tokens using Chrome OS Account // Manager. class COMPONENT_EXPORT(ASH_COMPONENTS_ACCOUNT_MANAGER) AccessTokenFetcher : public mojom::AccessTokenFetcher, public OAuth2AccessTokenConsumer { public: // `account_manager` is a non owning pointer to Chrome OS Account Manager and // is guaranteed to outlive `this` instance. // `mojo_account_key` is the account for which an access token needs to be // fetched. // `done_callback` is called after an access token fetch is complete. Used by // the owner of `this` object to figure out when it is safe to delete it. AccessTokenFetcher( account_manager::AccountManager* account_manager, mojom::AccountKeyPtr mojo_account_key, const std::string& consumer_name, base::OnceCallback done_callback, mojo::PendingReceiver receiver); AccessTokenFetcher(const AccessTokenFetcher&) = delete; AccessTokenFetcher& operator=(const AccessTokenFetcher&) = delete; ~AccessTokenFetcher() override; // mojom::AccessTokenFetcher overrides. void Start(const std::vector& scopes, StartCallback callback) override; // OAuth2AccessTokenConsumer overrides. void OnGetTokenSuccess(const TokenResponse& token_response) override; void OnGetTokenFailure(const GoogleServiceAuthError& error) override; std::string GetConsumerName() const override; private: // Mojo pipe disconnection handler. void OnMojoPipeError(); // Finish and cleanup by calling `done_callback_`. void Finish(); std::unique_ptr access_token_fetcher_; base::OnceCallback callback_; const std::string consumer_name_; // Called after `this` object's work is done and it can be safely deleted. base::OnceCallback done_callback_; mojo::Receiver receiver_; }; } // namespace crosapi #endif // COMPONENTS_ACCOUNT_MANAGER_CORE_CHROMEOS_ACCESS_TOKEN_FETCHER_H_

Browse by prefix:   0 1 2 3 4 6 7 8 9 a b c d e f g h i j k l lib- lib2 lib3 liba libb libc libd libe libf libg libh libi libj libk libl libm libn libo libp libq libr libs libt libu libv libw libx liby libz m n o p q r s t u v w x y z   |   Browse by page

Debsources — Copyright (C) 2011–2021, The Debsources developers. License: GNU AGPLv3+. Hosted source files are available under their own copyright and licenses. Source code: Git. Contact: [email protected]. Last update: Wed, 22 Mar 2023 21:08:51 -0000.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有